package org.xg.domain;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "SYS_R_USER2AUTHORITY")
public class User2AuthorityVO extends IdEntity {
	private UserVO user ;
	private AuthorityVO auth ;
	
	public User2AuthorityVO(){}
	
	@ManyToOne
	@JoinColumn(name="USER_ID")
	public UserVO getUser() {
		return user;
	}
	
	public void setUser(UserVO user) {
		this.user = user;
	}
	
	@ManyToOne
	@JoinColumn(name="AUTHORITY_ID")
	public AuthorityVO getAuth() {
		return auth;
	}
	
	public void setAuth(AuthorityVO auth) {
		this.auth = auth;
	}
}
